FROM keking/kkfileview-jdk:latest
ADD ./kkFileView-*.tar.gz /opt/
RUN mkdir -p /home/data
ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-4.2.0-SNAPSHOT/bin
COPY ./application.properties /opt/kkFileView-4.2.0-SNAPSHOT/config/application.properties
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/kkFileView-4.2.0-SNAPSHOT/config/application.properties","-jar","/opt/kkFileView-4.2.0-SNAPSHOT/bin/kkFileView-4.2.0-SNAPSHOT.jar"]

